#include <time.h>

#define START_MEASURING_TIME                    {clock_t clock_ticks_since_launch = clock();
#define DISPLAY_ELAPSED_SECONDS(action_string)  printf("%s took %.3f seconds.\n", action_string, (clock() - clock_ticks_since_launch) / (double)CLOCKS_PER_SEC);}